home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Tele / Internet / NewsWatch Folder / headers / GetMyIPAddr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-03  |  677 b   |  33 lines  |  [TEXT/MPS ]

  1. /* 
  2.     GetMyIPAddr.h    
  3.     C definitions of parameter block entries needed for IP calls
  4.  
  5.     Copyright Apple Computer, Inc. 1989 
  6.     All rights reserved
  7.     
  8. */
  9.  
  10. #ifndef _GETMYIP_
  11. #define _GETMYIP_
  12.  
  13. #define ipctlGetAddr        15            /* csCode to get our IP address */
  14.  
  15. #define IPParamBlockHeader     \
  16.     struct QElem *qLink;     \
  17.     short qType;             \
  18.     short ioTrap;             \
  19.     Ptr ioCmdAddr;             \
  20.     ProcPtr ioCompletion;     \
  21.     OSErr ioResult;         \
  22.     StringPtr ioNamePtr;     \
  23.     short ioVRefNum;        \
  24.     short ioCRefNum;        \
  25.     short csCode
  26.  
  27. struct IPParamBlock {
  28.     IPParamBlockHeader;            /* standard I/O header */
  29.     ip_addr    ourAddress;            /* our IP address */
  30.     long    ourNetMask;            /* our IP net mask */
  31.     };
  32.     
  33. #endif _GETMYIP_